package com.anjiplus.template.gaea.business.modules.quartz.trigger;

import com.anjiplus.template.gaea.business.modules.quartz.mode.TimingModel;
import com.anjiplus.template.gaea.business.modules.quartz.mode.TriggerType;
import org.quartz.Trigger;

/**
 * @version 1.0.0
 * @ClassName TriggerHandler.java
 * @Description 触发器工厂
 */
public interface ITriggerFactory {

    /**
     * 判断是否为该类型的触发器
     *
     * @param triggerType 触发器类型
     * @return boolean 如果是该类型的触发器返回true 否则返回false
     */
    public boolean check(TriggerType triggerType);


    public Trigger build(TimingModel timingModel);
}
